﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ColladaDotNet.OpenTKMapping
{
    public class SceneCollection
    {
    	private readonly Document document;

    	List<VisualScene> scenes = new List<VisualScene>();

    	public SceneCollection(Document document)
    	{
    		this.document = document;
    	}

    	public void AddScene(VisualScene scene)
        {
            scenes.Add(scene);
    		scene.Document = document;
        }

        public void RemoveScene(VisualScene scene)
        {
            scenes.Remove(scene);
			scene.Document = null;
		}

        public VisualScene this[int index]
        {
            get
            {
                return scenes[index];
            }
        }
    }
}
